﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>Thumbnail in Taskleiste</title>
    <meta http-equiv="X-UA-Compatible" content="IE=9" />
    <link href="/icons/site.ico" rel="shortcut icon" type="image/x-icon" />
    <meta name="application-name" content="Sample Site Mode Application" />
    <meta name="msapplication-navbutton-color" content="lightgreen" />
    <meta name="msapplication-tooltip" content="Starte die Anwendung" />
    <meta name="msapplication-starturl" content="/09_thumbnailtoolbar.htm" />
    <meta name="msapplication-window" content="width=800;height=600" />
    <script src="ie9helper.js" type="text/javascript"></script>
<script type="text/javascript">

function createThumbnailButtons() {
    if (!isSiteMode()) {
        return;
    }
    alert('createThumbnailButtons');
    btn1 = window.external.msSiteModeAddThumbBarButton('/icons/add.ico', 'button 1');
    btn2 = window.external.msSiteModeAddThumbBarButton('/icons/delete.ico', 'button 2');
    btn3 = window.external.msSiteModeAddThumbBarButton('/icons/edit.ico', 'button 3');

    window.external.msSiteModeShowThumbBar();

    document.addEventListener('msthumbnailclick', handler1, false);
}

</script>
</head>
<body>
    <p>
        <input id="Button1" type="button" value="Buttons anlegen" 
            onclick="javascript: createThumbnailButtons();" />
    </p>
    <p>
    </p>
</body>
</html>
